package com.yc.entities.custom;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author kukaha
 * @version 1.0.0
 * @ClassName CustomEquipmentQueryRequestBean.java
 * @Description TODO
 * @createTime 2021年04月17日 17:09:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "CustomDataQueryRequestBean对象", description = "数据管理查询Bean")
public class CustomDataQueryRequestBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "院长id ")
    @NotNull(message = "院长id不能为空")
    private Integer deanId;

    @ApiModelProperty(value = "科室id ")
    private Integer departmentId;

    @ApiModelProperty(value = "医生id ")
    private Integer doctorId;

    @ApiModelProperty(value = "糖尿病类型 0:全部 1:1型 2:2型 3:妊娠 4:其他")
    private String diabetesType;

    @ApiModelProperty(value = "患者名称")
    private String patientName;

    @ApiModelProperty(value = "住院号")
    private String hospitalNum;

    @ApiModelProperty(value = "床位号")
    private String bedNum;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
    @ApiModelProperty(value = "开始日期")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE_TIME)
    @ApiModelProperty(value = "结束日期")
    private Date endTime;

    @ApiModelProperty(value = "当前页码")
    private Integer current = 0;

    @ApiModelProperty(value = "一页显示多少条")
    private Integer size = 10;

}
